import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * Club Events
 * Aggregates information from three tables
 * Event
 * EventTimings
 * HoldsEvent
 * 
 * @author Kyle Marcotte
 * @version 11/06/2010
 */
public class Event {
	public String name;
	public String location;
	public Timestamp[] start;
	public Timestamp[] end;
	public int[] time_ids;
	public BigDecimal cost;
	
	// Useful for debugging
	public String toString(){
		String tos = name + " @ " + location + ".";
		for( int i = 0; i < start.length; i++ ){
			tos += "\n   " + (i+1) +": " + start[i].toString().split(":")[0] + ":" +
			start[i].toString().split(":")[1] + "  -  " + end[i].toString().split(":")[0] +
			":" + end[i].toString().split(":")[1];
		}
		return tos;
	}
}
